package com.xg.java.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xg.java.entity.SysUser;
import com.xg.java.mapper.SysUserMapper;
import com.xg.java.service.SysUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {
    @Resource
    private SysUserMapper sysUserMapper;
    @Override
    public SysUser loginUser(String userName, String password) {
        return sysUserMapper.loginUser(userName,password);
    }

    @Override
    public SysUser loginUserCode(String userName, String password) {
        return sysUserMapper.loginUserCode(userName,password);
    }
}
